<?php

session_start();
	if (!isset($_SESSION['sort'])){
		 $_SESSION['sort'] = "title ASC";
	}
	$ord = $_SESSION['sort'];

	if (isset($_REQUEST['sort'])){
		$ord = $_SESSION['sort'] = $_REQUEST['sort'];
	}

	$cf = isset($_REQUEST['c']) ? $_REQUEST['c'] : 1;
	$q = isset($_REQUEST['q']) ? $_REQUEST['q'] : 0;
?>